#include "unionrobcontrollerhmidll.h"
#include "unionrobcontrollerhmiinstance_global.h"

UnionRobControllerHMIDLL::UnionRobControllerHMIDLL(){
    PLU_RobControllerHMIInstanceCreate();
}

UnionRobControllerHMIDLL::~UnionRobControllerHMIDLL(){
    PLU_RobControllerHMIInstanceDelete();
}

QWidget* UnionRobControllerHMIDLL::RegisiterUi(){
    return PLU_RobControllerHMIIInstanceUiRegesiter();
}

void UnionRobControllerHMIDLL::FastTimerLoop(){
    TIMER_fasttimerloop();

}
void UnionRobControllerHMIDLL::SlowTimerLoop(){
    TIMER_slowtimerloop();
}

void UnionRobControllerHMIDLL::onbtnclicked_ModeSelected(short Mode){
    SLOTS_btnModeSelectedclicked_(Mode);
}

bool UnionRobControllerHMIDLL::onbtnclicked_vPower(){
    return SLOTS_btnvPowerClicked();
}
bool UnionRobControllerHMIDLL::onbtnclicked_ESTOP_Clicked(){
    return SLOTS_btnESTOPClicked();
}

void UnionRobControllerHMIDLL::onbtnclicked_Setting(){
    SLOTS_btnSettingClicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_Edit(){
    SLOTS_btnEditClicked();
}
bool UnionRobControllerHMIDLL::onbtnclicked_Pause(){
    return SLOTS_btnPauseClicked();
}
bool UnionRobControllerHMIDLL::onbtnclicked_Run(){
    return SLOTS_btnRunClicked();
}
bool UnionRobControllerHMIDLL::onbtnclicked_Stop(){
    return SLOTS_btnStopClicked();
}

void UnionRobControllerHMIDLL::onbtnclicked_fn1(){
    SLOTS_btnfn1Clicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_fn2(){
    SLOTS_btnfn2Clicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_fn3(){
    SLOTS_btnfn3Clicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_fn4(){
    SLOTS_btnfn4Clicked();
}

void UnionRobControllerHMIDLL::onbtnpressed_fn1(){}
void UnionRobControllerHMIDLL::onbtnpressed_fn2(){}
void UnionRobControllerHMIDLL::onbtnpressed_fn3(){}
void UnionRobControllerHMIDLL::onbtnpressed_fn4(){}

void UnionRobControllerHMIDLL::onbtnreleased_fn1(){}
void UnionRobControllerHMIDLL::onbtnreleased_fn2(){}
void UnionRobControllerHMIDLL::onbtnreleased_fn3(){}
void UnionRobControllerHMIDLL::onbtnreleased_fn4(){}

void UnionRobControllerHMIDLL::onbtnclicked_Home(){
    SLOTS_btnHomeClicked();
}

void UnionRobControllerHMIDLL::onbtnclicked_MainScriptStatus(){
    SLOTS_btnMainScriptStatusClicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_SubScriptStatus(){
    SLOTS_btnSubScriptStatusClicked();
}
void UnionRobControllerHMIDLL::onbtnclicked_VisHmi(){
    SLOTS_btnVisHmiClicked();
}

void UnionRobControllerHMIDLL::onbtnclicked_Coordinate(short& Coordinate,int& ToolId, int& WorkID){
    SLOTS_btnCoordinateClicked(Coordinate,ToolId,WorkID);
}

void UnionRobControllerHMIDLL::onbtnpressed_XP(){
    SLOTS_btnXPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_YP(){
    SLOTS_btnYPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_ZP(){
    SLOTS_btnZPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_AP(){
    SLOTS_btnAPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_BP(){
    SLOTS_btnBPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_CP(){
    SLOTS_btnCPPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_XN(){
    SLOTS_btnXNPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_YN(){
    SLOTS_btnYNPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_ZN(){
    SLOTS_btnZNPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_AN(){
    SLOTS_btnANPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_BN(){
    SLOTS_btnBNPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_CN(){
    SLOTS_btnCNPressed();
}

void UnionRobControllerHMIDLL::onbtnpressed_E1P(){
    SLOTS_btnE1PPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_E2P(){
    SLOTS_btnE2PPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_E1N(){
    SLOTS_btnE1NPressed();
}
void UnionRobControllerHMIDLL::onbtnpressed_E2N(){
    SLOTS_btnE2NPressed();
}

void UnionRobControllerHMIDLL::onbtnreleased_XP(){
    SLOTS_btnXPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_YP(){
    SLOTS_btnYPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_ZP(){
    SLOTS_btnZPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_AP(){
    SLOTS_btnAPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_BP(){
    SLOTS_btnBPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_CP(){
    SLOTS_btnCPReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_XN(){
    SLOTS_btnXNReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_YN(){
    SLOTS_btnYNReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_ZN(){
    SLOTS_btnZNReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_AN(){
    SLOTS_btnANReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_BN(){
    SLOTS_btnBNReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_CN(){
    SLOTS_btnCNReleased();
}

void UnionRobControllerHMIDLL::onbtnreleased_E1P(){
    SLOTS_btnE1PReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_E2P(){
    SLOTS_btnE2PReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_E1N(){
    SLOTS_btnE1NReleased();
}
void UnionRobControllerHMIDLL::onbtnreleased_E2N(){
    SLOTS_btnE2NReleased();
}

void UnionRobControllerHMIDLL::onbtnclicked_MannualOverrideP(double& value){
    SLOTS_btnMannualOverridePClicked(value);
}
void UnionRobControllerHMIDLL::onbtnclicked_ProgramOverrideP(double& value){
    SLOTS_btnProgramOverridePClicked(value);
}
void UnionRobControllerHMIDLL::onbtnclicked_MannualOverrideN(double& value){
    SLOTS_btnMannualOverrideNClicked(value);
}
void UnionRobControllerHMIDLL::onbtnclicked_ProgramOverrideN(double& value){
    SLOTS_btnProgramOverrideNClicked(value);
}

void UnionRobControllerHMIDLL::fromBackendMessageCommand(QByteArray Data){
    MES_fromBackendMessageCommand(Data);
}

void UnionRobControllerHMIDLL::toBackendMessage(QByteArray& Data){
    MES_toBackendMessage(Data);
}
